﻿@model WebGioiThieu.Models.aspnet_Membership
@{
    ViewBag.Title = "Cập nhật thông tin";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Thông tin tài khoản  @User.Identity.Name </legend>
        <table style="border:0;width:500px">
            <tr>
                <th></th>
                <th></th>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.FullName)</td>
                <td>@Html.EditorFor(model => model.FullName)
                    @Html.ValidationMessageFor(model => model.FullName)</td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.Gender)</td>
                <td>
                    <span>@Html.RadioButtonFor(model => model.Gender,true)<span>Nam</span>
                    @Html.RadioButtonFor(model => model.Gender,false)<span>Nữ</span></span>
                    @Html.ValidationMessageFor(model => model.Gender)
                </td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.Birthday)</td>
                <td>@Html.EditorFor(model => model.Birthday)
                    @Html.ValidationMessageFor(model => model.Birthday)</td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.Address)</td>
                <td>@Html.EditorFor(model => model.Address)
                    @Html.ValidationMessageFor(model => model.Address)</td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(model => model.PhoneNumber)
                </td>
                <td>
                    @Html.EditorFor(model => model.PhoneNumber)
                    @Html.ValidationMessageFor(model => model.PhoneNumber)
                </td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(model => model.IdentityCard)
                </td>
                <td>
                    @Html.EditorFor(model => model.IdentityCard)
                    @Html.ValidationMessageFor(model => model.IdentityCard)
                </td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(model => model.Email)
                </td>
                <td>
                    @Html.EditorFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(model => model.CreateDate)
                </td>
                <td>@Html.DisplayFor(model => model.CreateDate)</td>
            </tr>
        </table>
        <div class="editor-label">
            @Html.HiddenFor(model => model.IsLockedOut)
            @Html.HiddenFor(model => model.LastLoginDate)
            @Html.HiddenFor(model => model.LastPasswordChangedDate)
            @Html.HiddenFor(model => model.LastLockoutDate)
            @Html.HiddenFor(model => model.FailedPasswordAttemptCount)
            @Html.HiddenFor(model => model.FailedPasswordAttemptWindowStart)
            @Html.HiddenFor(model => model.FailedPasswordAnswerAttemptCount)
            @Html.HiddenFor(model => model.FailedPasswordAnswerAttemptWindowStart)
            @Html.HiddenFor(model => model.Comment)
            @Html.HiddenFor(model => model.ApplicationId)
            @Html.HiddenFor(model => model.UserId)
            @Html.HiddenFor(model => model.Password)
            @Html.HiddenFor(model => model.PasswordFormat)
            @Html.HiddenFor(model => model.PasswordSalt)
            @Html.HiddenFor(model => model.LoweredEmail)
            @Html.HiddenFor(model => model.PasswordQuestion)
            @Html.HiddenFor(model => model.PasswordAnswer)
            @Html.HiddenFor(model => model.IsApproved)
            @Html.HiddenFor(model => model.MobilePIN)
        </div>
        <p>
            <input type="submit" value="Lưu" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Trở về quản trị", "Index", "System")
</div>
